﻿
big_picture_desc =
{
    module_name = 'big_picture',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_GAME_START,
                    callback = 'big_picture_control.on_game_start'
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_GAME_END,
                    callback = 'big_picture_control.on_game_end'
                },
            },
            lua_event = 
            {
                {
                    id  = banner_event.UPDATE_GAME_STATE,
                    callback = "big_picture_control.update_game_state"
                },
            },
            reg_service = {
                {
                    id = 'i_service_notify_browser_msg',
                    callback = "big_picture_control.notify_browser_msg"
                },
                {
                    id = 'i_service_bp_call_ui',
                    callback = "big_picture_control.on_bp_call_ui"
                },
                {
                    id = 'i_service_show_bp_wnd',
                    callback = "big_picture_control.show_bp_wnd"
                },
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_ui_mode_change',
                    callback = "big_picture_control.on_ui_mode_change"
                },
                {
                    id = 'i_broadcast_streaming_mode_change',
                    callback = "big_picture_control.on_streaming_mode_change"
                },
                {
                    id = 'Svr_CloudGameState',
                    callback = "big_picture_control.on_cloud_game_state_update"
                },
            },           
            lua_file = "big_picture\\control.lua"
        },
    }
};
desc_mgr.add(big_picture_desc);